<!DOCTYPE html>
<html>
    <?php
    include'login.php';
    
    if(isset($_POST['Insert_text']))
    {
        Insert($_POST['textarea'], $_POST['user_name']);
    }
    
    
    ?>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <form method ="post" >
            <table>
                <tr>
                    <td>
                        Text
                    </td>
                    <td>
                        <input type="text" name ="textarea"/>

                    </td>
                    <td>
                        <input type = "submit" name ="Insert_text" value ="submit text post"
                               
                    </td>
                    <td>
                        user name
                    </td>
                    <td>
                        <input type="text" name="user_name"/>
                    </td>
                    
                </tr>
                
            </table>
            
        </form>
        <form method ="post" >
            <table>
                <tr>
                    <td>
                        PDF
                        
                    </td>
                    <td>
                        <input type ="file" name ="pdf" />
                    </td>
                    <td>
                        <input type = "submit" name ="pdf" value ="submit pdf"
                    </td>
                </tr>
            </table>
            
        </form>
        
        
    </body>
</html>
